define(function() {
	return function($compile, $scope) {
		require([ "PDUtilDir/slidebar", "PDUtilDir/inputSelect", "PDUtilDir/validator" ], function(
				Slidebar, inputSelect, validator) {
			$scope.validator = validator;
			$scope.center_pwd_object = {
	    		oldPass: undefined,
	    		newPass: undefined
	    	};
			$scope.updatePwd = function() {
				var _this = this;
				$.ajax({
					url : getServer() + "/flea/hclv/guide/account/updatePassword.htmls",
					data: $scope.center_pwd_object,
					success : function(data) {
                        if (data.status != 200) {
                            return;
                        }
						Util.alert(data.message);
						$scope.slidebars.close();
					}
				});
			};
//			$scope.userCenter = function() {
//				$scope.slidebars = Slidebar({
//					size : 'lg',
//					url : getServer() + "/static/core/page/home/center.html",
//					// close : true,
//					$scope : $scope,
//					$compile : $compile,
//					afterLoad : function($Panel) {
//						// _this.initialization();
//					}
//				});
//			}
		})
	}
});